<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<h:head></h:head>
<h:body>
Formulario de carga

	<h:form>
		<div>
			Last Name:
			<h:inputText id="lastName" value="#{userBean.lastName}"/>
		</div>
		<div>
			First Name:
			<h:inputText id="firstName" value="#{userBean.firstName}"/>
		</div>
		<div>
			<h:commandButton name="Send Form" value="Send Form">
				<f:ajax execute="lastName firstName" render="output"></f:ajax>
			</h:commandButton>
		
	
	
		<h:commandButton value="Submit" action="#{userBean.addUser}" />

		</div>
		<div>
			Valor en session: <h:outputText id="output" value="#{userBean.fullName}"></h:outputText>
		</div>
	</h:form>
</h:body>
</html>